﻿using System;
using System.Security.Principal;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Security;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ArmaTuCumple;
using ArmaTuCumple.Controllers;
using ArmaTuCumple.Models;


namespace ArmaTuCumple.Tests.Controllers
{
    [TestClass]
    public class ControladorServicio
    {
        private ServicioController GetServicioController ()
           {
               ServicioController controller = new ServicioController();
               controller.ControllerContext = new ControllerContext();
               return controller;

           }

        [TestMethod]
        public void InsertarServicioReturnView()
        {
            ServicioController controller = GetServicioController();
            ActionResult result = controller.Insertar();
            Assert.IsInstanceOfType(result, typeof(ViewResult));

        }

        [TestMethod]
        public void InsertarGuardarServicio()
        {
            ServicioController controller = GetServicioController();


        }

        [TestMethod]
        public void ContratarServicioReturnView()
        {
            ServicioController controller = GetServicioController();
            ActionResult result = controller.Contratar();
            Assert.IsInstanceOfType(result, typeof(ViewResult));

        }


    }
}
